home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / netinclude / net / a_if.h next >
C/C++ Source or Header  |  1994-02-04  |  962b  |  44 lines

  1. #ifndef NET_A_IF_H
  2. #define NET_A_IF_H
  3. /*
  4. **      $Filename: net/a_if.h $
  5. **    $Release$
  6. **      $Revision: 3.1 $
  7. **      $Date: 1994/02/03 11:56:05 $
  8. **
  9. **    Old style ioctl structures to network interface 
  10. **
  11. **    Copyright © 1993,1994 AmiTCP/IP Group, <AmiTCP-Group@hut.fi>
  12. **                  Helsinki University of Technology, Finland.
  13. **                  All rights reserved.
  14. */
  15.  
  16. #ifndef NET_IF_H
  17. #include <net/if.h>
  18. #endif
  19.  
  20. /*
  21.  * Compatibility interface structures
  22.  */
  23. struct    aifreq {
  24. #define    AIFNAMSIZ    64
  25.     char    ifr_name[AIFNAMSIZ]; /* sana-II name, e.g. "slip.device/0" */
  26.     union {
  27.         struct    sockaddr ifru_addr;
  28.         struct    sockaddr ifru_dstaddr;
  29.         struct    sockaddr ifru_broadaddr;
  30.         short    ifru_flags;
  31.         int    ifru_metric;
  32.         caddr_t    ifru_data;
  33.     } ifr_ifru;
  34. };
  35.  
  36. struct aifaliasreq {
  37.     char    ifra_name[AIFNAMSIZ]; /* sana-II name, e.g. "slip.device/0" */
  38.     struct    sockaddr ifra_addr;
  39.     struct    sockaddr ifra_broadaddr;
  40.     struct    sockaddr ifra_mask;
  41. };
  42.  
  43. #endif /* NET_A_IF_H */
  44.